package net.sppan.base.enumType;


/**
 * 留资信息来源
 *
 * #奖品数量配置   mg_3plus_model 多少个？？？？todo
 * mg_brand_cardbook=110
 * Key_buckle_red=275
 * large_leisure_handbag=5
 * mg_bear=10
 * mg_folding_umbrella=10
 * mg_3plus_model=5
 * mg_stainless_steel_sports_kettle=80
 * mark_cup=1
 *
 */
public enum AwardEnglishNameType {

    mg_brand_cardbook("mg_brand_cardbook","MG品牌卡册（扑克牌）",110),
    Key_buckle_red("Key_buckle_red","钥匙扣红",275),
    mg_bear("mg_bear","名爵熊",10),
    mg_folding_umbrella("mg_folding_umbrella","MG折叠伞",10),
    mg_3plus_model("mg_3plus_model","名爵3plus车模（红）",5),
    mg_stainless_steel_sports_kettle("mg_stainless_steel_sports_kettle","MG不锈钢运动水壶",80),
    mark_cup("mark_cup","马克杯",1),
    large_leisure_handbag("large_leisure_handbag","大号休闲手提包",5);

    private String name;

    private String desc;

    private int num;

     AwardEnglishNameType(String name , String desc , int num){
         this.name = name;
         this.desc = desc;
         this.num = num;
    }

    public static int getNumByName(String name){
        return AwardEnglishNameType.valueOf(name).num;
    }

    public static String getDescByName(String name){
         return AwardEnglishNameType.valueOf(name).desc;
    }

    public static void main(String[] args) {
        System.out.println( getNumByName("mark_cup"));;
    }

}
